package com.weipai.education.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
@Accessors(chain = true)
public class Product {
    private Integer id;

    private Date createTime;

    private Date updateTime;

    @NotBlank(message = "产品名称不能为空")
    private String name;

    @NotNull(message = "产品类别id不能为空")
    private Integer productCateId;

    @NotBlank(message = "产品图片不能为空")
    private String img;

    @NotBlank(message = "产品轮播图不能为空")
    private String slideshow;

    @NotNull(message = "产品状态不能为空")
    private Integer status;

    private Integer soldOut;//销售数量

    private String spuNumber;

    private Integer productNumber;//总数


}